package com.bqtv.sport.ui.mine

import android.content.Context
import android.content.Intent
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.bqtv.sport.adapter.InviteNumAdapter
import com.bqtv.sport.app.AppActivity
import com.bqtv.sport.databinding.ActivityInviteFriendsBinding

class InviteFriendsActivity : AppActivity<ActivityInviteFriendsBinding>() {
    private lateinit var numAdapter: InviteNumAdapter

    companion object {
        fun start(context: Context) {
            val intent = Intent(context, InviteFriendsActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun getViewBinding() = ActivityInviteFriendsBinding.inflate(layoutInflater)

    override fun initView() {
        binding.rcvPeopleNum.layoutManager = LinearLayoutManager(this)
        numAdapter = InviteNumAdapter()
        binding.rcvPeopleNum.adapter = numAdapter
    }

    override fun initData() {
        numAdapter.submitList(listOf("1", "2", "3", "4", "5", "6"))


        initListener()
    }

    private fun initListener() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        when (view) {

        }
    }
}